﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/SiteAgile.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="AgileSaude.Web.Account.Login" Debug="true" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- TÃTULO DA PÃGINA -->
    <div class="area-titulo container-fluid">
        <div class="container">
            <h2 class="titulo">
                Faça seu Login</h2>
        </div>
    </div>
    <!-- FIM DO TÃTULO -->
    <div class="container">
        <div class="form-login">
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                ValidationGroup="LoginUserValidationGroup" />
            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        CPF</label>
                    <div class="col-sm-10">
                        <asp:TextBox ID="txtCPF" runat="server" CssClass="form-control"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="CPFRequired" runat="server" ControlToValidate="txtCPF"
                            CssClass="failureNotification" ErrorMessage="CPF is required." ToolTip="User Name is required."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="CPFNumber" runat="server" ControlToValidate="txtCPF"
                            CssClass="failureNotification" ErrorMessage="CPF deve conter somente números"
                            ValidationGroup="LoginUserValidationGroup" ValidationExpression="^\d+?$">*</asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        Senha</label>
                    <div class="col-sm-10">
                        <asp:TextBox ID="txtPassword" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtPassword"
                            CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        <p>
                            <a href="#" class="btn-link">Esqueci minha senha.</a></p>
                    </div>
                </div>
                <div class="row">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Entrar" ValidationGroup="LoginUserValidationGroup"
                        OnClick="LoginButton_Click" class="btn btn-lg btn-success btn-block" />
                                        <a href="Register.aspx" class="btn btn-md btn-info btn-block">Quero me Cadastrar</a>
                </div>
        </div>
    </div>
</asp:Content>
